﻿using System;
using WeiboPlus.Common;
using WeiboPlus.Models;
using WeiboPlus.Service;

namespace WeiboPlus.Tencent
{
    public class TencentSNSProvider : SNSProvider
    {
        protected override void Initialize()
        {
            base.Initialize();
            this.ProviderName = AppResx.TencentMicroblogText;
            this.Type = SNSProviderType.Tencent;
            this.SupportUser = new SNSUser 
            {
                AccountName = "paytonL"
            };
        }

        protected override IOAuthService GetAuthriozeService()
        {
            throw new NotImplementedException();
        }

        protected override OAuthSettings GetAuthSettings()
        {
            return ConfigrationManager.Current[SNSProviderType.Tencent];
        }

        public override Uri GetIconUrl()
        {
            return new Uri("/Icons/tencent_32.png", UriKind.Relative);
        }

        public override bool IsSupported
        {
            get { return true; }
        }
    }
}
